def bayesian_fusion(conf1, conf2, prior=0.5):
    num = conf1 * conf2
    denom = prior
    score = num / denom if denom > 0 else 0
    score = min(max(score, 0), 1)
    return score


